package com.icloud.framework.exception;


import org.springframework.http.HttpStatus;

public class FailureObject {
	private HttpStatus status;
	private String error;
	private String exception;


	public FailureObject(HttpStatus status, String error, String exception){
		this.status = status;
		this.error = error;
		this.exception = exception;
	}

	public FailureObject(HttpStatus status, String error){
		this.status = status;
		this.error = error;

	}

	public HttpStatus getStatus() {
		return status;
	}
	public int getStatusCode(){
		return this.status.value();
	}

	public String getError() {
		return error;
	}

	public String getException(){
		return this.exception;
	}

	public long getTimestamp(){
		return System.currentTimeMillis();
	}


}
